package com.insigma.business.qrcode.banner.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
@TableName(value = "vms_ucenter.banner")
public class BannerEntity implements Serializable {

    @TableId(value = "ID",type = IdType.AUTO)
    private Integer id;
    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;
    /**
     * banner类型，B01商家推广；B02外部链接
     */
    @TableField(value = "banner_type")
    private String bannerType;
    /**
     * 商家ID
     */
    @TableField(value = "cwmi_id")
    private String cwmiId;
    /**
     * 外部链接
     */
    @TableField(value = "external_links")
    private String externalLinks;
    /**
     * 封面文件路径
     */
    @TableField(value = "banner_file")
    private String bannerFile;
    /**
     * 排序值
     */
    @TableField(value = "order_id")
    private String orderId;
    /**
     * 状态，10上架；20下架
     */
    @TableField(value = "status")
    private String status;
    /**
     * 上架/下架时间
     */
    @TableField(value = "release_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date releaseTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(value = "modify_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;


}
